<!--房型名称-->
<div class="control-group">
  <label class="control-label">产品名称:</label>
  <div class="controls">
    <input type="text" name="store_product[name]" class="js-order-text" required="true" placeholder="20个字以内">
  </div>
</div>

<div class="control-group">
  <label class="control-label">产品规格:</label>
  <div class="controls">
    <input type="text" name="store_product[format]" class="js-order-text" placeholder="20个字以内">
  </div>
</div>

<div class="control-group">
  <label class="control-label">产品价格:</label>
  <div class="controls">
    <%= f.text_field :price, class: 'input-inline js-product-new', type: 'text', required: "true", value: "1", disabled: "true" %>
    <span style="font-size: 12px;color:red;margin-left:5px;">*注:默认单价为1元,下单前请联系商家修改金额</span>
  </div>
</div>
<!-- <p class="help-block error-message js-show-product-new-error"></p> -->

<div class="control-group">
  <label class="control-label">数量:</label>
  <div class="controls">
    <input type="text" name="quantity" value="1" class="input-inline" required="true">
    <span style="font-size: 12px;color:red;margin-left:5px;">*注:加入购物车的数量</span>
  </div>
</div>

<!--图片-->
<div class="group-form images">
  <label class="label-inline" style="">介绍图片:</label>
  <!--房型图片组件-->
  <%= f.fields_for :images, @product.images.build do |ff| %>
    <div class="mssUploadFileContainer">

      <!--第三方插件-->
      <div class="fileinput fileinput-new" data-provides="fileinput">
        <div class="fileinput-preview thumbnail" data-trigger="fileinput"></div>
        <div class="btn-submit-change">
          <span class="btn btn-file">
            <span class="fileinput-new iconfont"><i class="fa fa-file-image-o" aria-hidden="true"></i></span>
            <!-- <span class="fileinput-exists iconfont">&#xe605</span> -->
            <%= ff.file_field :image, class: 'upload-input upload-image', required: "true" %>
            <!--<input class="upload-input upload-image" type="file" name="room[room_images_attributes][0][image]">-->
          </span>
          <!--<a href="#" class="btn btn-default fileinput-exists" data-dismiss="fileinput">删除图片</a>-->
        </div>
        <div class="btn-close iconfont"><i class="fa fa-trash-o" aria-hidden="true"></i></div>
      </div>

    </div>
  <% end %>

</div>



<!--提示-->
<section class="attention">
  <label class="color-f25e4b" style="margin-left: 12px;">图片有且至少一张!</label>
</section>

<!--确定 取消-->
<div class="button-submit-cancle">
  <button class="btn btn-crud positio" type="submit" name="commit" >确定</button>
  <%= link_to '取消', sales_store_products_path(@normal_store_id), class: 'btn positio btn-cancel' %>


</div>
